<?php
namespace app\home\model;

use think\Model;
use think\model\concern\SoftDelete;
use think\facade\Log;

class User extends Model
{
    //主键
    protected $pk = 'user_id';
    //表名
    // protected $table = 'user';
    //自动写入、更新时间戳
    //protected $autoWriteTimestamp = true;
    protected $autoWriteTimestamp = 'datetime';
    //只读字段
    protected $readonly = ['user_name'];
    //软删除
    /*use SoftDelete;
    protected $deleteTime = 'delete_time';*/

    /**
     * 随机姓名
     *
     * @param string $var
     * @return bool
     */
    public static function getRandomName()
    {
        $randomNameData = [
            'name1' => ['朝歌','北安','苍茫','伴我','鞍州','杯中','春天','爱你','丹水','池芜','安城','昌作','滨作','安柔','北大','城城','安西','不诉','黛烟','安于','安庆','城苏','安大','北音','北葵','安盈','把酒','淡雅','残荷','错在','城荒','半城','川阳','安阳','安林','崇颍','爱我','安之','暗似','百里','半城','半世','半宛','宝洼','悲欢','北滨','北港','北柠','宾夏','不如','部阳','仓昌','沧东','常巩','成泉','城港','城顺','城州','崇坊','川铁','吹了','春阳','错在','丹固','单漳','澹台','当宁','岛贡','德罗','灯火','登塔','低吟','棣阳','蝶梦','蝶舞','东克','都顺','独守','断编','方得','方南','肥城','肥龙','肥南','焚花','丰临','丰贤','风继','风在','枫林','枫桥','浮南','浮笑','浮云','福康','抚浦','阜城','嘎嘣','感动','赣林','港尉','高宕','高极','高神','歌旅','沽图','孤岛','孤念','古城','故人','故人','顾清','怪我','广云','国迁','哈自','海城','海岛','海铁','含川','寒光','寒裳','杭麟','何必','何时','和山','和项','河埠','河常','河寿','河兴','河云','鹤江','红海','红绫','红叶','洪票','候你','忽而','花开','花開','花堪','花死','花溪','花香','怀库','怀宁','环绕','幻墨','辉化','汇凉','汇南','霍罗','吉乐','即密','集州','既然','蓟尧','暨沧','佳庐','剪烛','建泗','剑光','剑上','剑箫','剑妖','剑意','涧边','涧花','江城','江甸','江丰','江闽','江溪','江阳','将宝','酱香','仅此','堇色','晋建','京门','井分','景南','靖汇','靖平','靖政','静若','静思','旧灯','旧人','旧人','旧人','旧人','拒与','看够','康安','康庄','岢平','克安','垦南','口平','寇晓','涞宁','赉沙','蓝月','郎濮','廊隰','浪迹','乐昌','乐闵','冷眸','冷月','离人','离人','礼光','莲乡','莲姚','凉薄','凉城','凉笙','辽静','烈酒','临枞','临江','临镇','灵西','凌丰','凌子','陵门','流年','流年','流云','琉璃','蓅哖','柳如','龙原','沦陷','洛书','落花','落羽','满泽','门安','门大','梦海','梦里','梦谈','梦醒','弥头','民荣','民唐','岷河','闵郑','明金','明宁','明五','陌寒','陌陌','陌上','陌上','莫南','蓦然','漠台','墨痕','墨落','墨染','墨染','墨染','墨染','墨染','墨色','墨羽','默然','木槿','木唐','慕歌','纳兰','南岸','南湖','南陵','南门','南明','南下','南巷','南巷','南中','难忘','霓裳','你会','你是','你是','念念','宁巢','宁邓','宁遂','宁泽','柠檬','盘抚','磐胜','屁顛','平前','平石','平台','平永','平舆','鄱南','绮梦','绮南','弃者','阡陌','浅安','浅寂','浅梦','浅夏','浅巷','浅笑','巧衢','且试','且听','沁通','青边','青灯','青笺','青橘','青梅','青色','青衫','倾尽','清风','清风','清酒','清酒','清浅','庆邑','曲湖','曲散','曲水','曲顺','泉河','染指','容宁','柔情','如此','汝似','汝水','入骨','瑞南','若无','沙山','厦黄','山富','山甘','山江','山南','山平','山平','山太','山铜','山秀','山姚','山政','商淮','莘龙','深爱','深河','深情','深情','神经','沈宁','声嘶','笙箫','失無','十步','石连','石永','守你','寿城','书剑','书影','熟悉','双大','水古','水集','水清','水清','水树','水余','水云','水周','顺繁','顺黄','顺辽','嵩饶','绥惠','绥木','绥宁','绥襄','绥襄','绥源','遂东','遂山','踏歌','踏雪','踏雪','台方','台靖','台乐','坛广','谭净','唐吉','洮闽','洮治','天镜','听风','听风','听够','听弦','亭鹤','通沽','通林','通子','头桦','万里','万俟','往事','望辽','为情','尉迟','闻酒','问艺','窝心','无梦','芜金','午时','武城','武古','武石','勿忘','西雷','西平','西泗','汐颜','溪武','溪州','夏末','夏至','咸武','香衣','襄庐','逍遙','潇洒','晓风','笑话','笑我','撷花','邂逅','新丰','新青','新山','信抚','兴东','兴吴','雄海','休江','修白','修水','盱太','徐山','烟花','烟久','烟雨','烟雨','煙雨','延陵','盐河','偃利','厌我','燕尔','阳城','阳皋','阳海','阳济','阳平','阳萨','阳新','掖壁','掖水','野定','叶茗','叶随','一笔','一划','一念','一曲','一丝','伊翎','伊清','依卢','倚剑','义大','艺抹','忆成','易进','易水','奕剑','阴绍','吟雪','荥明','拥者','庸人','永洪','永文','游首','又如','右龙','榆渭','虞徐','虞源','与彼','与你','予你','宇陵','玉汉','源郸','源宁','远安','远代','月色','月舞','月夜','月夜','月影','云崇','云卷','云山','云雨','郧乳','枣奉','泽风','泽畔','盏灯','彰周','漳票','漳州','长明','镇阳','征长','正兴','只若','指尖','志田','舟民','州保','州崇','州东','州海','州黄','州津','州里','州门','州全','州铜','州长','珠花','竹马','竹影','煮酒','庄安','庄东','浊酒','子然','紫陌','紫幽','自翼','自中','酔无','最初','醉枫','醉倾','醉月','江枫','明月','松柏'],
            'name2' => ['夜弦昔','通芦','大海','长眠','明莱','残酒','龙宕','如旧','南临','中绥','农泰','浦熟','宇盘','嘉奉','水高','安东','合邮','离殇','微醉','此生','嵊坊','脂丘','城华','执念','向暖','南登','临风','红颜','听雨','情深','梦空','茶香','崇城','口柳','阳樟','翔梁','别走','若兮','黛绿','流殇','烟沙','流离','清愁','江州','自饮','头沾','不夏','陌寒','坝赵','不见','阳嵊','江川','徐安','隆包','湖源','利夏','饶濮','安玛','头山','安绍','也罢','仙满','深情','临江','城宁','凌霜','上林','新徽','泰承','阑珊','池陕','浅唱','长虎','无边','天涯','靖库','肇兰','空城','残简','始终','化肇','潞水','松宕','武州','断玉','城名','南泽','续吹','云颠','叶落','听雨','曲同','半生','过影','都安','皋崇','临清','豆芽','是毒','崇城','族隆','武沈','宫林','乡贡','景优','长山','弥音','旧人','老巷','不顾','笑赠','瑶','太美','安沽','冲东','丽水','新高','龙港','牟湖','宜龙','竹影','舞月','莱安','誓言','归留','静海','丹临','溪萨','柘阳','英昌','宁化','江闵','峰乡','湖牟','舞','漂浮','龙蒙','已久','今夏','花落','陌上','傲笑','剑伤','禁锢','萦绕','临常','文坡','指尖','如烟','原阳','磐东','大丘','北曲','东镇','州辰','阳溪','无缘','铜川','定东','易东','西窗','通丰','倾城','江南','并酒','祸世','浮沉','幽草','烟雨','定韩','白户','城平','烦乐','冈州','汤墨','波泽','土豆','一次','安年','惠新','风月','河象','威江','兴海','济南','三邹','繁花','秋枫','老路','不覆','不归','城阙','泪予','酒醇','离去','山武','州临','辉山','化蒙','化铁','阳呼','然','朔方','和山','无殇','昌东','绛夷','天涯','大宁','商安','残情','轻吟','未归','怎挽','丰浮','西通','昌巧','女子','旧梦','墨染','莱永','暖泪','中德','平川','骅南','原松','泽夏','乾尤','肇民','独伤','已逝','若雨','年华','之殇','烟','正文','旳痛','千年恋','无声','成霜','太蓟','北阳','们仁','之巅','寄托','多话','人离','兰树','滨河','伊沭','长定','吕汶','北兴','密山','兴镇','澈','無言','初晓','初雨','歌','回首','彬安','八舞','成白','安然','青花','傾城','殇泪','幽城','芊华','尘曦','相爱','花开','永吉','凉','砌雪','青栀','平昌','仪城','嘉德','云连','佳人','旧人','清风','爱城','归人','羽衣','流泪','病根','病源','不忘','农波','达汪','德乐','海安','花扣','北姚','山铁','屁顛','东江','昌河','舞州','涟杭','大陵','头阳','千年','安晴','何留','红尘','时光','忧','墨汐','时光','墨漓','安然','白陕','天下','风吟','富州','阳成','古寺','染墨颜','短衫','老去','雨音','绣无暇','天下','月影','怎挽','半壶','暖心','流年','化陵','泾张','城破','山溪','塞如','文井','流年','山无','绕指','熟悉','星辰','春和','相思','桦镇','其事','至头','江深','吉拜','东州','凤会','丰乐','灵安','鲁德','港广','平石','溪清','仁东','江池','谷新','行九','是罪','宜绥','是蛊','则海','兮兮','泗南','力竭','月凭栏','所失','一杀','部清','许陵','如初','集穆','飘零','竹','时光','兴门','奉川','丰无','墨韵','云淡','州吴','郎长','之间','昌仙','平临','同新','河大','自灌','蒲陵','仁枞','阳湖','南临','平石','东阳','青安','巴塔','长安','无痕','寻梅','南坪','苏丹','柏松','绍无','流','长拜','宁南','营河','云生','赏雨','逝夜','珍惜','断','州朝','安安','平遂','寿嘉','城东','寒江','流霜','如昨','黄浠','斩天','飞雪','香浓','何思','故事','相赠','临汾','微风','武娄','山溪','宁东','初心','王朝','作族','灯怀','染瞳','威樊','乡平','烟雨','陌离','灌楚','坠花湮','化城','蒗孒','小伙','残月','情节','太糟','牵马','黄昏','州莲','西应','作长','禹沛','彰大','宣仙','平大','源洞','嘉阴','通泗','海固','定定','巷陌','如画','漂魂','头汀','過客','武孙','赞凤','西宁','请离','魇耳','宫海','汾长','津张','口江','腾城','云阳','苏唐','罗文','慈临','吴梅','秋','雨落','画情','写雨','初见','笙歌','苦笑','墨安','义城','唐邑','江山','延龙','离殇','殇何处','南双','寒','江湖路','山德','情枫','安新','不珍','安好','怀寿','谊原','远安','初见','林东','眙稷','通萨','方山','共醉','初见','心安','阳原','白泉','峰吴','嘉宁','柘康','骅平','潇湘','云袖','星辉','幽梦','沙丘','阳东','云舒','山鹿','飘零','余宿','干米','飘渺','东篱','古城','镇淮','潢南','沃阳','城磐','邢合','城锡','诏榆','初见','花凉','大河','水濮','顺树','城朝','歙沁','口漠','保沧','敖平','固宜','青涟','中高','亭滁','苍竹','雨落','枯萎','清风','弄茶','赤海','汶城','倾觞','黑墨','紅塵','蝶伊','西林','锦安','休','模样','染墨','城烟','湖畔'],
            'name3' => ['败','碧','苄','冰','残','钗','沉','触','典','绯','霏','荷','花','季','旧','控','狂','丽','茏','鸾','陌','墨','墨','默','慕','念','诺','琴','卿','琼','散','香','雪','忆','虞','择','醉']
        ];
        $i = $randomNameData['name1'][mt_rand(0, count($randomNameData['name1']) - 1)];
        $a = $randomNameData['name2'][mt_rand(0, count($randomNameData['name2']) - 1)];
        $s = mt_rand(0, 100) < 75 ? '' : $randomNameData['name3'][mt_rand(0, count($randomNameData['name3']) - 1)];
        $randomName = $i . $a . $s;
        Log::record('randomName:' . $randomName, \think\Log::DEBUG);

        return $randomName;
    }

    /**
     * 随机密码
     *
     * @param string $var
     * @return bool
     */
    public static function getRandomPassword()
    {
        $wordlists['english'] = [
            'abandon','ability','able','about','above','absent','absorb','abstract','absurd','abuse',
            'access','accident','account','accuse','achieve','acid','acoustic','acquire','across','act',
            'action','actor','actress','actual','adapt','add','addict','address','adjust','admit',
            'adult','advance','advice','aerobic','affair','afford','afraid','again','age','agent',
            'agree','ahead','aim','air','airport','aisle','alarm','album','alcohol','alert',
            'alien','all','alley','allow','almost','alone','alpha','already','also','alter',
            'always','amateur','amazing','among','amount','amused','analyst','anchor','ancient','anger',
            'angle','angry','animal','ankle','announce','annual','another','answer','antenna','antique',
            'anxiety','any','apart','apology','appear','apple','approve','april','arch','arctic',
            'area','arena','argue','arm','armed','armor','army','around','arrange','arrest',
            'arrive','arrow','art','artefact','artist','artwork','ask','aspect','assault','asset',
            'assist','assume','asthma','athlete','atom','attack','attend','attitude','attract','auction',
            'audit','august','aunt','author','auto','autumn','average','avocado','avoid','awake',
            'aware','away','awesome','awful','awkward','axis','baby','bachelor','bacon','badge',
            'bag','balance','balcony','ball','bamboo','banana','banner','bar','barely','bargain',
            'barrel','base','basic','basket','battle','beach','bean','beauty','because','become',
            'beef','before','begin','behave','behind','believe','below','belt','bench','benefit',
            'best','betray','better','between','beyond','bicycle','bid','bike','bind','biology',
            'bird','birth','bitter','black','blade','blame','blanket','blast','bleak','bless',
            'blind','blood','blossom','blouse','blue','blur','blush','board','boat','body',
            'boil','bomb','bone','bonus','book','boost','border','boring','borrow','boss',
            'bottom','bounce','box','boy','bracket','brain','brand','brass','brave','bread',
            'breeze','brick','bridge','brief','bright','bring','brisk','broccoli','broken','bronze',
            'broom','brother','brown','brush','bubble','buddy','budget','buffalo','build','bulb',
            'bulk','bullet','bundle','bunker','burden','burger','burst','bus','business','busy',
            'butter','buyer','buzz','cabbage','cabin','cable','cactus','cage','cake','call',
            'calm','camera','camp','can','canal','cancel','candy','cannon','canoe','canvas',
            'canyon','capable','capital','captain','car','carbon','card','cargo','carpet','carry',
            'cart','case','cash','casino','castle','casual','cat','catalog','catch','category',
            'cattle','caught','cause','caution','cave','ceiling','celery','cement','census','century',
            'cereal','certain','chair','chalk','champion','change','chaos','chapter','charge','chase',
            'chat','cheap','check','cheese','chef','cherry','chest','chicken','chief','child',
            'chimney','choice','choose','chronic','chuckle','chunk','churn','cigar','cinnamon','circle',
            'citizen','city','civil','claim','clap','clarify','claw','clay','clean','clerk',
            'clever','click','client','cliff','climb','clinic','clip','clock','clog','close',
            'cloth','cloud','clown','club','clump','cluster','clutch','coach','coast','coconut',
            'code','coffee','coil','coin','collect','color','column','combine','come','comfort',
            'comic','common','company','concert','conduct','confirm','congress','connect','consider','control',
            'convince','cook','cool','copper','copy','coral','core','corn','correct','cost',
            'cotton','couch','country','couple','course','cousin','cover','coyote','crack','cradle',
            'craft','cram','crane','crash','crater','crawl','crazy','cream','credit','creek',
            'crew','cricket','crime','crisp','critic','crop','cross','crouch','crowd','crucial',
            'cruel','cruise','crumble','crunch','crush','cry','crystal','cube','culture','cup',
            'cupboard','curious','current','curtain','curve','cushion','custom','cute','cycle','dad',
            'damage','damp','dance','danger','daring','dash','daughter','dawn','day','deal',
            'debate','debris','decade','december','decide','decline','decorate','decrease','deer','defense',
            'define','defy','degree','delay','deliver','demand','demise','denial','dentist','deny',
            'depart','depend','deposit','depth','deputy','derive','describe','desert','design','desk',
            'despair','destroy','detail','detect','develop','device','devote','diagram','dial','diamond',
            'diary','dice','diesel','diet','differ','digital','dignity','dilemma','dinner','dinosaur',
            'direct','dirt','disagree','discover','disease','dish','dismiss','disorder','display','distance',
            'divert','divide','divorce','dizzy','doctor','document','dog','doll','dolphin','domain',
            'donate','donkey','donor','door','dose','double','dove','draft','dragon','drama',
            'drastic','draw','dream','dress','drift','drill','drink','drip','drive','drop',
            'drum','dry','duck','dumb','dune','during','dust','dutch','duty','dwarf',
            'dynamic','eager','eagle','early','earn','earth','easily','east','easy','echo',
            'ecology','economy','edge','edit','educate','effort','egg','eight','either','elbow',
            'elder','electric','elegant','element','elephant','elevator','elite','else','embark','embody',
            'embrace','emerge','emotion','employ','empower','empty','enable','enact','end','endless',
            'endorse','enemy','energy','enforce','engage','engine','enhance','enjoy','enlist','enough',
            'enrich','enroll','ensure','enter','entire','entry','envelope','episode','equal','equip',
            'era','erase','erode','erosion','error','erupt','escape','essay','essence','estate',
            'eternal','ethics','evidence','evil','evoke','evolve','exact','example','excess','exchange',
            'excite','exclude','excuse','execute','exercise','exhaust','exhibit','exile','exist','exit',
            'exotic','expand','expect','expire','explain','expose','express','extend','extra','eye',
            'eyebrow','fabric','face','faculty','fade','faint','faith','fall','false','fame',
            'family','famous','fan','fancy','fantasy','farm','fashion','fat','fatal','father',
            'fatigue','fault','favorite','feature','february','federal','fee','feed','feel','female',
            'fence','festival','fetch','fever','few','fiber','fiction','field','figure','file',
            'film','filter','final','find','fine','finger','finish','fire','firm','first',
            'fiscal','fish','fit','fitness','fix','flag','flame','flash','flat','flavor',
            'flee','flight','flip','float','flock','floor','flower','fluid','flush','fly',
            'foam','focus','fog','foil','fold','follow','food','foot','force','forest',
            'forget','fork','fortune','forum','forward','fossil','foster','found','fox','fragile',
            'frame','frequent','fresh','friend','fringe','frog','front','frost','frown','frozen',
            'fruit','fuel','fun','funny','furnace','fury','future','gadget','gain','galaxy',
            'gallery','game','gap','garage','garbage','garden','garlic','garment','gas','gasp',
            'gate','gather','gauge','gaze','general','genius','genre','gentle','genuine','gesture',
            'ghost','giant','gift','giggle','ginger','giraffe','girl','give','glad','glance',
            'glare','glass','glide','glimpse','globe','gloom','glory','glove','glow','glue',
            'goat','goddess','gold','good','goose','gorilla','gospel','gossip','govern','gown',
            'grab','grace','grain','grant','grape','grass','gravity','great','green','grid',
            'grief','grit','grocery','group','grow','grunt','guard','guess','guide','guilt',
            'guitar','gun','gym','habit','hair','half','hammer','hamster','hand','happy',
            'harbor','hard','harsh','harvest','hat','have','hawk','hazard','head','health',
            'heart','heavy','hedgehog','height','hello','helmet','help','hen','hero','hidden',
            'high','hill','hint','hip','hire','history','hobby','hockey','hold','hole',
            'holiday','hollow','home','honey','hood','hope','horn','horror','horse','hospital',
            'host','hotel','hour','hover','hub','huge','human','humble','humor','hundred',
            'hungry','hunt','hurdle','hurry','hurt','husband','hybrid','ice','icon','idea',
            'identify','idle','ignore','ill','illegal','illness','image','imitate','immense','immune',
            'impact','impose','improve','impulse','inch','include','income','increase','index','indicate',
            'indoor','industry','infant','inflict','inform','inhale','inherit','initial','inject','injury',
            'inmate','inner','innocent','input','inquiry','insane','insect','inside','inspire','install',
            'intact','interest','into','invest','invite','involve','iron','island','isolate','issue',
            'item','ivory','jacket','jaguar','jar','jazz','jealous','jeans','jelly','jewel',
            'job','join','joke','journey','joy','judge','juice','jump','jungle','junior',
            'junk','just','kangaroo','keen','keep','ketchup','key','kick','kid','kidney',
            'kind','kingdom','kiss','kit','kitchen','kite','kitten','kiwi','knee','knife',
            'knock','know','lab','label','labor','ladder','lady','lake','lamp','language',
            'laptop','large','later','latin','laugh','laundry','lava','law','lawn','lawsuit',
            'layer','lazy','leader','leaf','learn','leave','lecture','left','leg','legal',
            'legend','leisure','lemon','lend','length','lens','leopard','lesson','letter','level',
            'liar','liberty','library','license','life','lift','light','like','limb','limit',
            'link','lion','liquid','list','little','live','lizard','load','loan','lobster',
            'local','lock','logic','lonely','long','loop','lottery','loud','lounge','love',
            'loyal','lucky','luggage','lumber','lunar','lunch','luxury','lyrics','machine','mad',
            'magic','magnet','maid','mail','main','major','make','mammal','man','manage',
            'mandate','mango','mansion','manual','maple','marble','march','margin','marine','market',
            'marriage','mask','mass','master','match','material','math','matrix','matter','maximum',
            'maze','meadow','mean','measure','meat','mechanic','medal','media','melody','melt',
            'member','memory','mention','menu','mercy','merge','merit','merry','mesh','message',
            'metal','method','middle','midnight','milk','million','mimic','mind','minimum','minor',
            'minute','miracle','mirror','misery','miss','mistake','mix','mixed','mixture','mobile',
            'model','modify','mom','moment','monitor','monkey','monster','month','moon','moral',
            'more','morning','mosquito','mother','motion','motor','mountain','mouse','move','movie',
            'much','muffin','mule','multiply','muscle','museum','mushroom','music','must','mutual',
            'myself','mystery','myth','naive','name','napkin','narrow','nasty','nation','nature',
            'near','neck','need','negative','neglect','neither','nephew','nerve','nest','net',
            'network','neutral','never','news','next','nice','night','noble','noise','nominee',
            'noodle','normal','north','nose','notable','note','nothing','notice','novel','now',
            'nuclear','number','nurse','nut','oak','obey','object','oblige','obscure','observe',
            'obtain','obvious','occur','ocean','october','odor','off','offer','office','often',
            'oil','okay','old','olive','olympic','omit','once','one','onion','online',
            'only','open','opera','opinion','oppose','option','orange','orbit','orchard','order',
            'ordinary','organ','orient','original','orphan','ostrich','other','outdoor','outer','output',
            'outside','oval','oven','over','own','owner','oxygen','oyster','ozone','pact',
            'paddle','page','pair','palace','palm','panda','panel','panic','panther','paper',
            'parade','parent','park','parrot','party','pass','patch','path','patient','patrol',
            'pattern','pause','pave','payment','peace','peanut','pear','peasant','pelican','pen',
            'penalty','pencil','people','pepper','perfect','permit','person','pet','phone','photo',
            'phrase','physical','piano','picnic','picture','piece','pig','pigeon','pill','pilot',
            'pink','pioneer','pipe','pistol','pitch','pizza','place','planet','plastic','plate',
            'play','please','pledge','pluck','plug','plunge','poem','poet','point','polar',
            'pole','police','pond','pony','pool','popular','portion','position','possible','post',
            'potato','pottery','poverty','powder','power','practice','praise','predict','prefer','prepare',
            'present','pretty','prevent','price','pride','primary','print','priority','prison','private',
            'prize','problem','process','produce','profit','program','project','promote','proof','property',
            'prosper','protect','proud','provide','public','pudding','pull','pulp','pulse','pumpkin',
            'punch','pupil','puppy','purchase','purity','purpose','purse','push','put','puzzle',
            'pyramid','quality','quantum','quarter','question','quick','quit','quiz','quote','rabbit',
            'raccoon','race','rack','radar','radio','rail','rain','raise','rally','ramp',
            'ranch','random','range','rapid','rare','rate','rather','raven','raw','razor',
            'ready','real','reason','rebel','rebuild','recall','receive','recipe','record','recycle',
            'reduce','reflect','reform','refuse','region','regret','regular','reject','relax','release',
            'relief','rely','remain','remember','remind','remove','render','renew','rent','reopen',
            'repair','repeat','replace','report','require','rescue','resemble','resist','resource','response',
            'result','retire','retreat','return','reunion','reveal','review','reward','rhythm','rib',
            'ribbon','rice','rich','ride','ridge','rifle','right','rigid','ring','riot',
            'ripple','risk','ritual','rival','river','road','roast','robot','robust','rocket',
            'romance','roof','rookie','room','rose','rotate','rough','round','route','royal',
            'rubber','rude','rug','rule','run','runway','rural','sad','saddle','sadness',
            'safe','sail','salad','salmon','salon','salt','salute','same','sample','sand',
            'satisfy','satoshi','sauce','sausage','save','say','scale','scan','scare','scatter',
            'scene','scheme','school','science','scissors','scorpion','scout','scrap','screen','script',
            'scrub','sea','search','season','seat','second','secret','section','security','seed',
            'seek','segment','select','sell','seminar','senior','sense','sentence','series','service',
            'session','settle','setup','seven','shadow','shaft','shallow','share','shed','shell',
            'sheriff','shield','shift','shine','ship','shiver','shock','shoe','shoot','shop',
            'short','shoulder','shove','shrimp','shrug','shuffle','shy','sibling','sick','side',
            'siege','sight','sign','silent','silk','silly','silver','similar','simple','since',
            'sing','siren','sister','situate','six','size','skate','sketch','ski','skill',
            'skin','skirt','skull','slab','slam','sleep','slender','slice','slide','slight',
            'slim','slogan','slot','slow','slush','small','smart','smile','smoke','smooth',
            'snack','snake','snap','sniff','snow','soap','soccer','social','sock','soda',
            'soft','solar','soldier','solid','solution','solve','someone','song','soon','sorry',
            'sort','soul','sound','soup','source','south','space','spare','spatial','spawn',
            'speak','special','speed','spell','spend','sphere','spice','spider','spike','spin',
            'spirit','split','spoil','sponsor','spoon','sport','spot','spray','spread','spring',
            'spy','square','squeeze','squirrel','stable','stadium','staff','stage','stairs','stamp',
            'stand','start','state','stay','steak','steel','stem','step','stereo','stick',
            'still','sting','stock','stomach','stone','stool','story','stove','strategy','street',
            'strike','strong','struggle','student','stuff','stumble','style','subject','submit','subway',
            'success','such','sudden','suffer','sugar','suggest','suit','summer','sun','sunny',
            'sunset','super','supply','supreme','sure','surface','surge','surprise','surround','survey',
            'suspect','sustain','swallow','swamp','swap','swarm','swear','sweet','swift','swim',
            'swing','switch','sword','symbol','symptom','syrup','system','table','tackle','tag',
            'tail','talent','talk','tank','tape','target','task','taste','tattoo','taxi',
            'teach','team','tell','ten','tenant','tennis','tent','term','test','text',
            'thank','that','theme','then','theory','there','they','thing','this','thought',
            'three','thrive','throw','thumb','thunder','ticket','tide','tiger','tilt','timber',
            'time','tiny','tip','tired','tissue','title','toast','tobacco','today','toddler',
            'toe','together','toilet','token','tomato','tomorrow','tone','tongue','tonight','tool',
            'tooth','top','topic','topple','torch','tornado','tortoise','toss','total','tourist',
            'toward','tower','town','toy','track','trade','traffic','tragic','train','transfer',
            'trap','trash','travel','tray','treat','tree','trend','trial','tribe','trick',
            'trigger','trim','trip','trophy','trouble','truck','true','truly','trumpet','trust',
            'truth','try','tube','tuition','tumble','tuna','tunnel','turkey','turn','turtle',
            'twelve','twenty','twice','twin','twist','two','type','typical','ugly','umbrella',
            'unable','unaware','uncle','uncover','under','undo','unfair','unfold','unhappy','uniform',
            'unique','unit','universe','unknown','unlock','until','unusual','unveil','update','upgrade',
            'uphold','upon','upper','upset','urban','urge','usage','use','used','useful',
            'useless','usual','utility','vacant','vacuum','vague','valid','valley','valve','van',
            'vanish','vapor','various','vast','vault','vehicle','velvet','vendor','venture','venue',
            'verb','verify','version','very','vessel','veteran','viable','vibrant','vicious','victory',
            'video','view','village','vintage','violin','virtual','virus','visa','visit','visual',
            'vital','vivid','vocal','voice','void','volcano','volume','vote','voyage','wage',
            'wagon','wait','walk','wall','walnut','want','warfare','warm','warrior','wash',
            'wasp','waste','water','wave','way','wealth','weapon','wear','weasel','weather',
            'web','wedding','weekend','weird','welcome','west','wet','whale','what','wheat',
            'wheel','when','where','whip','whisper','wide','width','wife','wild','will',
            'win','window','wine','wing','wink','winner','winter','wire','wisdom','wise',
            'wish','witness','wolf','woman','wonder','wood','wool','word','work','world',
            'worry','worth','wrap','wreck','wrestle','wrist','write','wrong','yard','year',
            'yellow','you','young','youth','zebra','zero','zone','zoo'];
        $password = [];
        for ($i = 0; $i < 2; $i++) {
            $password[] = $wordlists['english'][mt_rand(0, count($wordlists['english']) - 1)];
        }
        $passwordStr = implode(' ', $password);
        Log::record('randomPassword:' . $passwordStr, \think\Log::DEBUG);

        return $passwordStr;
    }
}